package com.xjrh.traintravel.collector.netty.command.config;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 通讯协议命令-参数设置-02：心跳设置
 * @author snps
 * @create 2022-01-27 15:03
 * @describe
 **/
public class Config06 extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -281892797924714185L;


    /**
     * 心跳间隔时间（单位：秒）
     */
    private int field1;

    /**
     * 检测断开次数
     */
    private int field2;


    /**
     * Constructor
     */
    public Config06() {
        this.setCommonNo("06");
    }


    /**************************************
     * Getter and Setter
     */
    public int getField1() {
        return field1;
    }

    public void setField1(int field1) {
        this.field1 = field1;
    }

    public int getField2() {
        return field2;
    }

    public void setField2(int field2) {
        this.field2 = field2;
    }


    @Override
    public String toString() {
        return "Config06{" +
                "field1=" + field1 +
                ", field2=" + field2 +
                '}';
    }

}